﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using DAL;

namespace BLL
{
    public class HoaDonController
    {
        tbHoaDon obj = new tbHoaDon();
        public DataTable bllHienThiDDDaGiao()
        {
            return obj.dalHienThiDDDaGiao();
        }
        public DataTable bllHienTTDDDaGiao(int sohd)
        {
            obj.Sohd = sohd;
            return obj.dalHienTTDDDaGiao();
        }

        public DataTable bllHienThiDDChuaGiao()
        {
            return obj.dalHienThiDDChuaGiao();
        }
        public DataTable bllHienThiTTDDChuaGiao(int sohd)
        {
            obj.Sohd=sohd;
            return obj.dalHienThiTTDDChuaGiao();
        }

        public DataTable bllTKMatHangBan(string ngaybd, string ngaykt)
        {
            obj.Ngaybd = ngaybd;
            obj.Ngaykt = ngaykt;
            return obj.dalTKMatHangBan();
        }

        public bool bllSuaHD(int sohd)
        {
            bool res = false;
            obj.Sohd = sohd;
            res = obj.dalSuaHD();
            return res;
            
        }
    }
}
